<template>
    <input type="checkbox" name="" id="select">
    <div class="card">
        <label for="select" id="select_lable"></label>
        <div class="img"></div>
        <h2 class="title">SNOWMan</h2>
        <p class="desc">
            dasdlasldjaslkdjaslkdjalsjdlasjdlasjdl
            aksjdlkasjdlkasjdlasjd
            asjkdahsjkdjasldjkalsdjklasjdlaskjdla
            sjdlkasjdasdas
            daksdhjalskhdiewhrfiuoewhfpoewhfpolewj
            flop;aesjfl;kdsjhfioewhfioew
        </p>
        <div class="content">
            <p>
                dlasjdlkasjdlasjdlkasjdlkasjdlkasjdlkasj
                dlasjldjqwljediloqwje
                daskldhkqwyheoqwyhriuew3hgerhglrhglkrtjg
                hlkrtjghl;rtkgh
                ewkrfhewkrh的哈萨克的还款时间海口市额外花费
                论文李尔王喝酒聊天个个人
                额外加分渴望和开发哈俄日洛克人规划李刚荷兰人
                阿尔发给客人监理规划了如果合
            </p>
            <p>
                dlasjdlkasjdlasjdlkasjdlkasjdlkasjdlkasj
                dlasjldjqwljediloqwje
                daskldhkqwyheoqwyhriuew3hgerhglrhglkrtjg
                hlkrtjghl;rtkgh
                ewkrfhewkrh的哈萨克的还款时间海口市额外花费
                论文李尔王喝酒聊天个个人
                额外加分渴望和开发哈俄日洛克人规划李刚荷兰人
                阿尔发给客人监理规划了如果合
            </p><p>
                dlasjdlkasjdlasjdlkasjdlkasjdlkasjdlkasjdlasjldjqwljediloqwje
                daskldhkqwyheoqwyhriuew3hgerhglrhglkrtjghlkrtjghl;rtkgh
                ewkrfhewkrh的哈萨克的还款时间海口市额外花费论文李尔王喝酒聊天个个人
                额外加分渴望和开发哈俄日洛克人规划李刚荷兰人阿尔发给客人监理规划了如果合
            </p>
        </div>
        <div class="icon">
            <i class="fa fa-bookmark">图标1</i>
            <i class="fa fa-facebook-official">图标2</i>
            <i class="fa fa-twitter">图标3</i>
            <i class="fa fa-instagram">图标4</i>
        </div>
    </div>
</template>

<script setup lang="ts">

</script>

<style scoped>
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    height: 100vh;
    background-color: #dcdde1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
}

#select{
    display: none;
}
.card{
    width: 400px;
    height: 600px;
    background-color: #ffffff;
    box-shadow: 0 0 50px 10px rgba(0, 0, 0, .3);
    transition: all .6s;
    text-align: center;
}
.img{
    width: 400px;
    height: 230px;
    background: url('@/assets/img/5.jpg');
    background-size: cover;
    transition: all 0.6s;
}
.title{
    font-size: 30px;
    color: rgb(88, 88, 88);
    margin: 30px 0 15px 0;
    transition: all .6s;
    transition-delay: .2s;
}
.desc{
    width: 400px;
    margin-bottom: 20px;
    padding: 0 30px;
    line-height: 25px;
    opacity: 1;
    color: rgb(170, 170, 170);
}
.content{
    display: none;
    height: 1300px;
    text-align: center;
    padding: 0 20%;
}
.icon{
    width: 300px;
    font-size: 22px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.icon i{
    margin: 10px;
    font-size: 22px;
    color: rgb(75, 75, 75);
}

/* 点击放大 */
#select_lable{
    display: block;
    position: absolute;
    width: 400px;
    height: 600px;
    z-index: 999;
}
#select:checked~.card #select_lable{
    width: 100vw;
    height: 100vh;
}

#select:checked~.card{
    width: 100vw;
    height: 100vh;
}
#select:checked~.card .img{
    width: 100vw;
    height: 650px;
    overflow: hidden;
}
#select:checked~.card .title{
    transform: translateY(-400px);
    color: #ffffff;
    font-size: 70px;
}
#select:checked~.card .desc{
    display: none
    /* opacity: 0; */
}
#select:checked~.card .icon{
    display: none;
}
#select:checked~.card .content{
    display: block;
    animation: content 2s;
    transform: translateY(-50px);
}
@keyframes content{
    from{
        opacity: 0;
        transform: translateY(0px);
    }
    to{
        opacity: 1;
        transform: translateY(-50px);
    }
}
</style>